#include "Word.h"
#include "Token.h"

namespace nflt {

	Word::Word(void)
	{
		index_ = -1;
	}

	Word::Word(const std::string& data, int index)
		: data_(data), index_(index)
	{
	}

	Word::~Word(void)
	{
	}

	int Word::tokenCnt()
	{
		return data_.size() / Token::TOKEN_SIZE + data_.size() % Token::TOKEN_SIZE ? 1 : 0;
	}
}